/*  1:   */ package org.jetbrains.jsonProtocol;
/*  2:   */ 
/*  3:   */

import com.google.gson.stream.JsonWriter;

import java.io.IOException;
import java.lang.reflect.Method;
import java.util.List;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ public final class JsonWriters
/*  9:   */ {
/* 10:   */   public static final Method JSON_WRITE_DEFERRED_NAME;
/* 11:   */   
/* 12:   */   static
/* 13:   */   {
/* 14:   */     try
/* 15:   */     {
/* 16:14 */       JSON_WRITE_DEFERRED_NAME = JsonWriter.class.getDeclaredMethod("writeDeferredName", new Class[0]);
/* 17:15 */       JSON_WRITE_DEFERRED_NAME.setAccessible(true);
/* 18:   */     }
/* 19:   */     catch (NoSuchMethodException localNoSuchMethodException)
/* 20:   */     {
/* 21:18 */       throw new RuntimeException(localNoSuchMethodException);
/* 22:   */     }
/* 23:   */   }
/* 24:   */   
/* 25:   */   public static void writeStringList(JsonWriter paramJsonWriter, String paramString, List<String> paramList)
/* 26:   */     throws IOException
/* 27:   */   {
/* 28:26 */     paramJsonWriter.name(paramString);
/* 29:27 */     paramJsonWriter.beginArray();
/* 30:28 */     for (String str : paramList) {
/* 31:29 */       paramJsonWriter.value(str);
/* 32:   */     }
/* 33:31 */     paramJsonWriter.endArray();
/* 34:   */   }
/* 35:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jsonProtocol.JsonWriters

 * JD-Core Version:    0.7.0.1

 */